/*
 * FriendRequest.fx
 *
 * Created on Mar 27, 2010, 12:04:11 PM
 */

package com.gpsbuddy.services;
import java.lang.StringBuffer;

/**
 * @author jonycus
 */

public class FriendRequest {

        public var rUser:User;
        public var tUser:User;

        public function toXML():String{
            var xml:StringBuffer = StringBuffer {};
            xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
            xml.append("<friendRequestResource>");
            xml.append("<requests>");
            xml.append("<status>true</status> ");
            xml.append("<RUser>");
            xml.append(rUser.toShortXML());
            xml.append("</RUser>");
            xml.append("<TUser>");
            xml.append(tUser.toShortXML());
            xml.append("</TUser>");
            xml.append("</requests>");
            xml.append("</friendRequestResource>");
            return xml.toString();
        }


}
